config: drop double size lease times; they are all UINT32_MAX;
authorPaul Donald <[email protected]>
Fri, 3 Oct 2025 14:36:03 +0000 (16:36 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 13 Oct 2025 07:53:14 +0000 (09:53 +0200)
commit93449f1513b47bdc373112ac2be7ac08766a82b1
treef966c52f5295fa6ea364d6b44c2f5900305b64f3
parent439c0ceab1317a8d33f69d6df1af70c2d8b621b4
config: drop double size lease times; they are all UINT32_MAX;

This now prevents implicit 64 bit->32 bit truncation which may flag
compiler errors later on down the road.

All of the variables receiving from parse_leasetime() are uint32_t
anyway, so max 136 years of valid lease time will have to suffice :)

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/225
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/config.c